CC=g++
CFLAGS= -O2 -Wall

C= ../code
TEST= ./
O= ../o


.PHONY	: all clean

all	: vectoresRandom testVector

new: clean all
	
vectoresRandom : $(TEST)/vectoresRandom.o $(O)/vector.o $(TEST)/defs.h
	$(CC) $(CFLAGS) $(TEST)/vectoresRandom.o $(O)/vector.o $(TEST)/defs.h -o vectoresRandom

testVector : $(TEST)/testVector.o $(O)/vector.o $(TEST)/defs.h
	$(CC) $(CFLAGS) $(TEST)/testVector.o $(O)/vector.o $(TEST)/defs.h -o testVector

$(O)/%.o : $(C)/%.cpp
	$(CC) $(CFLAGS) $^ -c -o $@
	../sh/move-cpp.sh

clean :
	rm -f $(OBJ) vectoresRandom
